package com.alibaba.cloud.application.mapping;

import com.alibaba.cloud.domain.dto.PhoneMessageDto;
import com.alibaba.cloud.domain.PhoneMessage;

import org.mapstruct.CollectionMappingStrategy;
import org.mapstruct.Mapper;
import org.mapstruct.NullValueCheckStrategy;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

/***
 * @description: EmailInfoMapping
 * @author: zhb1316783262@163.com
 * @date: 2022/6/12 20:58
 */
@Mapper(collectionMappingStrategy = CollectionMappingStrategy.ADDER_PREFERRED, nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS, unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface PhoneMessageMapping extends CommonProtoMapping {

    PhoneMessageMapping INSTANCE = Mappers.getMapper(PhoneMessageMapping.class);

    /***
     * @description: DTO 转 PO
     * @author: zhb1316783262@163.com
     * @date: 2022/6/25 16:23
     */
    PhoneMessage dtoToPO(PhoneMessageDto phoneMessageDto);
}
